package com.dongwei.junitlearn.chapter3.controller.impl;

import com.dongwei.junitlearn.chapter3.controller.iface.Request;
import com.dongwei.junitlearn.chapter3.controller.iface.Response;

public class ErrorResponse implements Response {

	private Request originalRequest;
	private Exception originalException;

	public ErrorResponse(Request request, Exception e) {
		this.originalRequest = request;
		this.originalException = e;
	}

	public Request getOriginalRequest() {
		return originalRequest;
	}

	public void setOriginalRequest(Request originalRequest) {
		this.originalRequest = originalRequest;
	}

	public Exception getOriginalException() {
		return originalException;
	}

	public void setOriginalException(Exception originalException) {
		this.originalException = originalException;
	}

	public String getName() {
		return null;
	}
}
